# @shuaige : 陈世玉
# @name :01Dome.py
# @time :2024/12/3 17:25
import requests
headers={
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
}
params={
    "wd":"python"
}
r=requests.get("https://www.baidu.com/s?",headers=headers,params=params)
r.encoding='utf-8'
print(r.text)#返回的数据类型是源码Unicode数据
print(r.content)#返回的数据类型是字节流 一般用来图片，音乐等文件
print(r.json())
